/**
 * 
 */
package cn.wangsy.zhidao.p20170314;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

/**
 * @author wangsy
 * @date 2017年3月14日上午10:28:54
 */
public class Crawler {

	public static void main(String[] args) throws IOException{
		String url = "http://shop.m.taobao.com/shop/coupon.htm?seller_id=2099617157&activity_id=97688e6292b441f395f2f7fb978ddc57";
		Document doc = Jsoup.connect(url)
				.userAgent("Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36")
				.get();
		System.out.println(doc.select("div[class=coupon-info]").text());
	}
	
}
